]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Warn when removing old animationInfo
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 12 May 2020 10:28:03 +0000 (12:28 +0200)
committerRobert Mader <robert.mader@posteo.de>
Mon, 15 Jun 2020 13:12:03 +0000 (13:12 +0000)
Now that we properly notify mutter about when a size-change animation
has ended, it should never happen that a new size-change animation is
started without the last one being cancelled (ie. 'kill-window-effects'
being emitted).

This means there should also never be an old animationInfo attached to a
window actor, so warn in case we still find one when starting the
animation.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1251

js/ui/windowManager.js

index 97601eee47eb76cdf4e707bd646be7efd84e8056..1ea5daff706fc260469e526f2fad51f7e48b3b52 100644 (file)
@@ -1301,8 +1301,10 @@ var WindowManager = class {
 
         actor.freeze();
 
-        if (this._clearAnimationInfo(actor))
+        if (this._clearAnimationInfo(actor)) {
+            log('Old animationInfo removed from actor %s'.format(actor));
             this._shellwm.completed_size_change(actor);
+        }
 
         let destroyId = actor.connect('destroy', () => {
             this._clearAnimationInfo(actor);